package com.dxysun.springboot.aspect;

import org.aspectj.lang.ProceedingJoinPoint;
import org.aspectj.lang.annotation.Around;
import org.aspectj.lang.annotation.Aspect;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;

/**
 * 事件日志处理类
 * @author hzsuhao2014
 * @date 2016年1月19日
 */
@Component
@Aspect
@Order(5)
public class DataAcquisitionAspectj
{

	@Around("execution(* *.*(..)) && @annotation(com.dxysun.springboot.annotation.DataAcquisition)")
	public Object profile(ProceedingJoinPoint pjp) throws Throwable
	{
		System.out.println("进入 DataAcquisition");

		Object object = pjp.proceed();

		return object;
	}

}
